package cn.ecut.dzy.one.single;

import java.io.IOException;
import java.util.Properties;

/**
 * @program: java-interview
 * @description:
 * @author: DingZhenYun
 * @create: 2021-10-21 18:03
 **/

public class Singleton3 {
    public static final Singleton3 INSTANCE;
    private String info;

    static {
        try {
            Properties pro = new Properties();

            pro.load(Singleton3.class.getClassLoader().getResourceAsStream("single.properties"));

            INSTANCE = new Singleton3(pro.getProperty("info"));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }    }
    private Singleton3(String info){
        this.info=info;
    }
}
